<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
    <title>旋转李诞</title>
    <style>
        section {
            perspective: 2000px;
            width: 249px;
            height: 268px;
            position: relative;
            margin: 100px auto;
            transform-style: preserve-3d;
            animation: rotate 5s linear infinite;
        }
        
        @keyframes rotate {
            0% {
                transform: rotateY(0);
            }
            100% {
                transform: rotateY(360deg);
            }
        }
        
        section:hover {
            animation-play-state: paused;
        }
        
        div {
            position: absolute;
            top: 0;
            left: 0;
            width: 498px;
            height: 536px;
            background: url('./img/lidan.png') no-repeat;
        }
        
        section div:nth-child(1) {
            transform: translateZ(600px);
        }
        
        section div:nth-child(2) {
            transform: rotateY(30deg) translateZ(600px);
        }
        
        section div:nth-child(3) {
            transform: rotateY(60deg) translateZ(600px);
        }
        
        section div:nth-child(4) {
            transform: rotateY(90deg) translateZ(600px);
        }
        
        section div:nth-child(5) {
            transform: rotateY(120deg) translateZ(600px);
        }
        
        section div:nth-child(6) {
            transform: rotateY(150deg) translateZ(600px);
        }
        
        section div:nth-child(7) {
            transform: rotateY(180deg) translateZ(600px);
        }
        
        section div:nth-child(8) {
            transform: rotateY(210deg) translateZ(600px);
        }
        
        section div:nth-child(9) {
            transform: rotateY(240deg) translateZ(600px);
        }
        
        section div:nth-child(10) {
            transform: rotateY(270deg) translateZ(600px);
        }
        
        section div:nth-child(11) {
            transform: rotateY(300deg) translateZ(600px);
        }
        
        section div:nth-child(12) {
            transform: rotateY(360deg) translateZ(600px);
        }
    </style>
</head>

<body>
    <section>
        <div></div>
        <div></div>
        <div></div>
        <div></div>
        <div></div>
        <div></div>
        <div></div>
        <div></div>
        <div></div>
        <div></div>
        <div></div>
        <div></div>
    </section>
</body>

</html>